package com.aoip.telemetry.telemetry.entity.enums;

/**
 * @author chenbai
 * @version 1.0
 * @Description TODO
 * @date 2022/9/13 23:06
 */
public enum AbnoTypeEnum {
    /**
     * jvm 缓存中数据的key
     *
     * @date 2022/1/5
     **/
    MISSING_MESSAGE(3, "缺报文"),
    OFF_LINE(4, "离线"),
    EQUIPMENT_EXCEPTION(5, "设备异常"),
    MESSAGE_EXCEPTION(6, "报文异常"),
    STORAGE_FAIL(7, "入库失败"),
    LAST_DATA_RECEIVED(21, "最后一次数据到报"),
    LAST_HEARTBEAT(22, "最后一次测站心跳"),
    ;

    /**
     * @category 编码
     */
    private int  code;

    /**
     * @category 说明
     */
    private String msg;

    AbnoTypeEnum(int code, String msg) {
        setCode(code);
        setMsg(msg);
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
